﻿using BCCommon.TMS.DimensionUnit;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BCDto.TMS.Packing.PackingConfigOverwrite
{
    /// <summary>
    /// 包装材料配置重写
    /// </summary>
    public class PackingConfigOverwritePutDto
    {
        /// <summary>
        /// 包装材料分类配置Id
        /// </summary>            
        [Display(Name = "包装材料分类配置Id")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public int PackingCategoryConfigId { get; set; }

        /// <summary>
        /// 包装材料标题
        /// </summary>            
        [Display(Name = "包装材料标题")]
        [MaxLength(length: 50)]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string PackingTitle { get; set; }

        /// <summary>
        /// 材料宽度
        /// </summary>            
        [Display(Name = "材料宽度")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public int PackingWidth { get; set; }

        /// <summary>
        /// 材料长度
        /// </summary>            
        [Display(Name = "材料长度")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public int PackingLength { get; set; }

        /// <summary>
        /// 材料高度
        /// </summary>            
        [Display(Name = "材料高度")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public int PackingHeight { get; set; }

        /// <summary>
        /// 尺寸单位
        /// </summary>            
        [Display(Name = "尺寸单位")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public DimensionUnit DimensionUnit { get; set; }

        /// <summary>
        /// 显示单位
        /// </summary>            
        [Display(Name = "显示单位")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public DimensionUnit ShowUnit { get; set; }

        /// <summary>
        /// 转换单位比例
        /// </summary>            
        [Display(Name = "转换单位比例")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public int TransformRatio { get; set; }

        /// <summary>
        /// 价格
        /// </summary>            
        [Display(Name = "价格")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public decimal Price { get; set; }
    }
}
